import com.LCQ.crm.utils.SqlSessionUtil;
import com.LCQ.crm.workbench.dao.ActivityDao;
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class test05 {
    public static void main(String[] args) {
        ActivityDao activityDao = SqlSessionUtil.getSqlSession().getMapper(ActivityDao.class);
        Map map1 = new HashMap();
        map1.put("index",0);
        map1.put("pageSize",4);
        List<Map> listMap = activityDao.selectPage(map1);
        for (Map map:listMap) {
            Map<String,String> m = map;
            for(String key: m.keySet()){
                if(key.equals("name")){
                    System.out.println("name:"+m.get(key));
                }
                if(key.equals("createTime")){
                    System.out.println("name:"+m.get(key));
                }
            }
        }
        Map map2 = activityDao.getGlobal();
        System.out.println(map2);
    }

}
